@extends('layouts.public')
@section('content')


<?php
$error_msgs = $errors->getMessages();
if ($error_msgs && sizeof ($error_msgs)) {
    foreach ($error_msgs as $field=>$msgs) {
        foreach ($msgs as $msg) {
echo "
<div data-alert class='alert-box warning radius'>
  {$msg}
  <a href='#' class='close'>&times;</a>
</div>
  ";
        }
    }
}
?>

{{ Form::open(array('url' => '/signup', 'method' => 'post')) }}

<div class="row">
    <div class="large-12 columns">
 {{ Form::label('email', 'e-mail address') }}
 {{ Form::email('email', Input::old('email')) }}
  </div>
</div>


<div class="row">
    <div class="large-12 columns">
 {{ Form::label('password', 'password') }}
 {{ Form::password('password') }}
  </div>
</div>


<div class="row">
    <div class="large-12 columns">
 {{ Form::label('group', 'group') }}
 {{ Form::text('group', Input::old('group'), array ('placeholder'=>'name of your household or group')) }}
  </div>
</div>

<div class="row">
    <div class="large-12 columns">
 {{ Form::submit('sign me up!', array('class'=>'button')) }}
  </div>
</div>

 {{ Form::close() }}
@stop
